package gtug.duesseldorf.server.restlet;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.Router;

/**
 * 
 * <p>
 * \rest\waves -> get all waves (inbox)
 * </p>
 * 
 * <p>
 * \rest\waves\1 -> get wave one
 * </p>
 * 
 * 
 * @author Georg Sendt
 * 
 */
public class GoogleWaveServerApplication extends Application {

	@Override
	public Restlet createRoot() {

		Router router = new Router(getContext());

		router.attach("/waves", GoogleWaveServerResource.class);

		router.attach("/waves/{waveNr}", GoogleWaveServerResource.class);

		return router;
	}
}
